package cn.getech.data.metadata.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统模块
 * 
 * @author qiuxinglei
 * @email qiuxinglei@gmail.com
 * @date 2020-09-29 15:30:41
 */
@ApiModel(description = "系统模块")
@Data
@TableName("collection_system_module")
public class CollectionSystemModuleEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@ApiModelProperty(value = "")
	@TableId
	private Integer smId;
	/**
	 * 类型 1:系统 2:模块
	 */
	@ApiModelProperty(value = "类型 1:系统 2:模块")
	private Integer smType;
	/**
	 * 名称
	 */
	@ApiModelProperty(value = "名称")
	private String smName;
	/**
	 * 父id
	 */
	@ApiModelProperty(value = "父id")
	private Integer parentId;
	/**
	 * 负责人 关联sys_user的主键
	 */
	@ApiModelProperty(value = "负责人 关联sys_user的主键")
	private Long manager;
	/**
	 * 创建者ID
	 */
	@ApiModelProperty(value = "创建者ID")
	private Long createPer;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**
	 * 更新者ID
	 */
	@ApiModelProperty(value = "更新者ID")
	private Long updatePer;
	/**
	 * 更新时间
	 */
	@ApiModelProperty(value = "更新时间")
	private Date updateTime;

	/**
	 * 是否默认 1:默认
	 */
	@ApiModelProperty(value = "是否默认 1:默认")
	private Integer isDefault;


	@TableField(value = "tenant_id")
	private Integer tenantId;

	public CollectionSystemModuleEntity(){}
	public CollectionSystemModuleEntity(Integer smId, String smName, Integer parentId) {
		this.smId = smId;
		this.smName = smName;
		this.parentId = parentId;
	}
}
